package req

type ProductReq struct {
	Id          int32    `json:"id"`
	Name        string   `json:"name" binding:"required,min=2,max=32"`
	SN          string   `json:"sn" binding:"required,min=2,lt=16"`
	CategoryId  int32    `json:"categoryId" binding:"required"`
	Price       int32    `json:"price" binding:"required,min=0"`
	RealPrice   int32    `json:"realPrice" binding:"required,min=0""`
	ShortDesc   string   `json:"shortDesc" binding:"required,min=3"`
	Desc        string   `json:"desc" binding:"required,min=3"`
	Images      []string `json:"images" binding:"required,min=1"`
	DescImages  []string `json:"descImages" binding:"required,min=1"`
	CoverImages string   `json:"coverImages" binding:"required,min=1"`
	BrandId     int32    `json:"brandId" binding:"required"`
	IsNew       bool     `json:"isNew" binding:"required"`
	IsPop       bool     `json:"IsPop" binding:"required"`
	Selling     bool     `json:"selling" binding:"required"`
	FavNum      int32    `json:"favNum" binding:"required"`
	SoldNu      int32    `json:"soldNu" binding:"required"`
}
